package router

import (
	"github.com/gin-gonic/gin"
	"github.com/smash-llj/Nexa-server/api"
)

func InitCaptchaRoutes() {
	//注册当前大模块到gfnRoutes里面
	RegisterRoute(func(rgPublic *gin.RouterGroup, tgAuth *gin.RouterGroup) {
		captcha := api.NewCaptchaApi()
		rgPublic.GET("/generat", captcha.GenerateCaptcha)
		rgPublic.GET("/captcha", captcha.ServeCaptchaImage)
	})
}
